package com.ruoyi.qualityControl.service.impl;

import com.ruoyi.qualityControl.domain.ExplainStatus;
import com.ruoyi.qualityControl.mapper.ExplainStatusMapper;
import com.ruoyi.qualityControl.service.ExplainStatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ExplainStatusServiceImpl implements ExplainStatusService {
    @Autowired
    private ExplainStatusMapper explainStatusMapper;
    @Override
    public List<ExplainStatus> settleAll() {
        return explainStatusMapper.selectAll();
    }

    @Override
    public Boolean insert(ExplainStatus explainStatus) {
        return explainStatusMapper.insert(explainStatus);
    }

    @Override
    public Boolean update(ExplainStatus explainStatus) {
        return explainStatusMapper.update(explainStatus);
    }

    @Override
    public Boolean deleteById(Integer id) {
        return explainStatusMapper.deleteById(id);
    }
}
